<div class="plantillas view">
<h2><?php echo $plantilla['Plantilla']['titulo']; ?></h2>
<div class="related">
	<h3><?php echo __('Criterios de evaluación'); ?></h3>
	<?php if (!empty($plantilla['Criterio'])): ?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php echo __('Tipo'); ?></th>
		<th><?php echo __('Criterio'); ?></th>
		<th class="actions"><?php echo __(''); ?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($plantilla['Criterio'] as $criterio): ?>
		<tr>
			<td><?php echo $criterio['tipo']; ?></td>
			<td><?php echo $this->Html->link($criterio['criterio'], array('controller'=>'criterios','action'=>'view',
			$criterio['id'])); ?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('Editar'), array('controller' => 'criterios', 'action' => 'edit', $criterio['id'])); ?>
				<?php echo $this->Form->postLink(__('Eliminar'), array('controller' => 'criterios', 'action' => 'delete', $criterio['id']), null, __('Esta usted seguro que desea eliminar el criterio?', $criterio['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('Nuevo criterio'), array('action' => 'add_criterio',$plantilla['Plantilla']['id']),true); ?> </li>
		</ul>
	</div>
</div>
</div>

	<div class="actions">
	<h3><?php echo __('Actions'); ?></h3>
	<ul>
		<li><?php echo $this->Html->link(__('Editar Plantilla'), array('action' => 'edit', $plantilla['Plantilla']['id'])); ?> </li>
		<li><?php echo $this->Form->postLink(__('Eliminar Plantilla'), array('action' => 'delete', $plantilla['Plantilla']['id']), null, __('Esta seguro que desea eliminar la plantilla?', $plantilla['Plantilla']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('Listar Plantillas'), array('action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('Nueva Plantilla'), array('action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('Listar Criterios'), array('controller' => 'criterios', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('Nuevo Criterio'), array('controller' => 'criterios', 'action' => 'add')); ?> </li>
	</ul>
</div>
